package com.yuqiangz.spring5.othertypeinject;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author 赵雨强
 * @create 2021/7/19 7:42
 * @description 数组，集合，map的注入
 */
public class stu {

    /**
     * 数组类型属性
     */
    private String[] courses;

    /**
     * list集合类型
     */
    private List<String> list;

    /**
     * map集合类型属性
     */
    private Map<String , String> maps;
    /**
     * set类型注入
     */
    private Set<String> sets;

    public String[] getCourses() {
        return courses;
    }

    public void setCourses(String[] courses) {
        this.courses = courses;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Map<String, String> getMaps() {
        return maps;
    }

    public void setMaps(Map<String, String> maps) {
        this.maps = maps;
    }
    public Set<String> getSets() {
        return sets;
    }

    public void setSets(Set<String> sets) {
        this.sets = sets;
    }

    @Override
    public String toString() {
        return "stu{" +
                "courses=" + Arrays.toString(courses) +
                ", list=" + list +
                ", maps=" + maps +
                ", sets=" + sets +
                '}';
    }
}
